<template>
  <div class="public-container">
    <van-grid
      :column-num="2"
      icon-size="15px"
    >
      <van-grid-item
        @click="$router.push({name:'colhis',params:{type:0}})"
        icon="star-o"
        text="收藏"
      />
      <van-grid-item
        @click="$router.push({name:'colhis',params:{type:1}})"
        icon="browsing-history-o"
        text="历史"
      />
    </van-grid>
    <van-cell
      @click="$router.push('/chat')"
      is-link
      title="小智同学"
    />
  </div>
</template>

<script>
export default {
  name: "Public",
  components: {},
  data() {
    return {};
  },
  methods: {}
};
</script>

<style scoped lang="stylus">
.van-cell
  margin-top 10px

/deep/ .van-icon-star-o
  color rgb(235, 82, 83)

/deep/ .van-icon-browsing-history-o
  color rgb(255, 160, 35)
</style>